<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main"/>
    <title>Show Device</title>
</head>
<body>
<div class="nav">
    <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}">Home</a></span>
    <span class="menuButton"><g:link class="list" action="list">Device List</g:link></span>
    <span class="menuButton"><g:link class="create" action="create">New Device</g:link></span>
</div>
<div class="body">
    <h1>Show Device</h1>
    <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
    </g:if>
    <div class="dialog">
        <table>
            <tbody>

                <tr class="prop">
                    <td valign="top" class="name">Id:</td>

                    <td valign="top" class="value">${device.id}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Notify Email:</td>

                    <td valign="top" class="value">${device.notifyEmail}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Notify Action:</td>

                    <td valign="top" class="value">${device.notifyAction}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Allow Notify:</td>

                    <td valign="top" class="value">${device.allowNotify}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Code Version:</td>

                    <td valign="top" class="value">${device.codeVersion}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Date Created:</td>

                    <td valign="top" class="value">${device.dateCreated}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Devicegroup:</td>

                    <td valign="top" class="value"><g:link controller="devicegroup" action="show" id="${device?.devicegroup?.id}">${device?.devicegroup}</g:link></td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Diagnostics:</td>

                    <td valign="top" style="text-align:left;" class="value">
                        <ul>
                            <g:each var="d" in="${device.diagnostics}">
                                <li><g:link controller="diagnostic" action="show" id="${d.id}">${d}</g:link></li>
                            </g:each>
                        </ul>
                    </td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Equipment Type:</td>

                    <td valign="top" class="value">${device.equipmentType}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Eventdatas:</td>

                    <td valign="top" style="text-align:left;" class="value">
                        <g:link controller="eventdata" action="list" id="${device.id}">eventdata link</g:link>
                    </td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Feature Set:</td>

                    <td valign="top" class="value">${device.featureSet}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Imei Number:</td>

                    <td valign="top" class="value">${device.imeiNumber}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Is Active:</td>

                    <td valign="top" class="value">${device.isActive}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Last Input State:</td>

                    <td valign="top" class="value">${device.lastInputState}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Last Updated:</td>

                    <td valign="top" class="value">${device.lastUpdated}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Notes:</td>

                    <td valign="top" class="value">${device.notes}</td>

                </tr>

                <tr class="prop">
                    <td valign="top" class="name">Sim Phone Number:</td>

                    <td valign="top" class="value">${device.simPhoneNumber}</td>

                </tr>

                <tr>

                    <td>
                        <g:link controller="track" action="track" id="${device.id}">See Map</g:link>
                    </td>
                    <td>
                        <ul>
                            <li><g:link controller="device" action="report2KML" id="${device.id}">Export 2 KML</g:link></li>
                            <li><g:link controller="device" action="report2XML" id="${device.id}">Export 2 XML</g:link></li>
                        </ul>
                    </td>

                </tr>

            </tbody>
        </table>
    </div>
    <div class="buttons">
        <g:form>
            <input type="hidden" name="id" value="${device?.id}"/>
            <span class="button"><g:actionSubmit class="edit" value="Edit"/></span>
            <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete"/></span>
        </g:form>
    </div>
</div>
</body>
</html>
